// replaceAll:替换所有匹配到的字符串;不改变原值
let s = "Visit Microsoft! Visit Microsoft!";
let res = s.replaceAll("Microsoft", "Hello");
console.log(res);  // Visit Hello! Visit Hello!
